{% load future wenlincms_tags %}
{% spaceless %}
    <form action="{% url "search" %}" class="am-form-inline" role="search" id="search-form">

        <div class="am-form-group am-form-select">
            <select name="type" data-am-selected>
                <option value="org" {% if "org" == request.REQUEST.type %}selected{% endif %}>企业</option>
                <option value="prj" {% if "prj" == request.REQUEST.type %}selected{% endif %}>供需</option>
                <option value="user" {% if "user" == request.REQUEST.type %}selected{% endif %}>人脉</option>
            </select>
            <span class="am-form-caret"></span>
        </div>

        <div class="am-input-group am-input-group-secondary">
            <input type="text" name="q" class="am-form-field" value="{{ request.REQUEST.q }}">

        <span class="am-input-group-btn">
        <button type="submit" class="am-btn am-btn-secondary am-topbar-btn am-btn-xs"><span
                class="am-icon-search">&nbsp;搜索</span>
        </button>
        </span>
        </div>

    </form>
{% endspaceless %}
